const Koa = require("koa");
const path = require("path");
const static = require("koa-static");
const app = new Koa();

//设置静态资源的路径
const staticPath = "./www";

app.use(static(path.join(__dirname, staticPath)));

app.use(async ctx => {
	ctx.body = "hello world";
});

app.listen(2333, "0.0.0.0", () => {
	console.log("server is starting at port 2333");
});
